package day05;

import java.util.StringTokenizer;

public class StringTokenizerDemo {
    public static void main(String[] args) {
        String dateTime = "2023/07/03 08:48:00";
        dateTime = dateTime.replaceAll("\\D", " ");
        System.out.println(dateTime);
        StringTokenizer st=new StringTokenizer(dateTime);
       // System.out.println(st.nextToken());
        int Y, M, D, hh, mm, ss;
        Y= Integer.parseInt(st.nextToken());
        M= Integer.parseInt(st.nextToken());
        D= Integer.parseInt(st.nextToken());
        hh=Integer.parseInt(st.nextToken());
        mm=Integer.parseInt(st.nextToken());

        //System.out.println(Y);//2023
    }
}